<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\DB;

class Company extends Model
{
    use SoftDeletes;

    protected $table = 'companies';

    //获取公司信息
    public static function getSelectOptions()
    {
        $options = self::pluck('company_name', 'id');
        return $options;
    }
}
